//
//  UIViewController+CLExtension.h
//  CLExtension
//
//  Created by CharlieLiao on 2017/7/3.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ViewAppearStatus) {
    ViewLoad = 0,
    ViewDidLoad,
    ViewWillAppear,
    ViewDidAppear,
    ViewWillDisappear,
    ViewDidDisappear,
};

@protocol VCHideTopBarProtocol

///
@property (nonatomic, assign, readonly) BOOL hidesTopBarWhenPushed;

@end

@protocol VCHideKeyboardProtocol

/// 点击空白背景自动隐藏键盘
@property (nonatomic, assign, readonly) BOOL tapBgAutoHideKeyboard;

@end


@interface UIViewController (CLExtension)

///
@property (nonatomic, readonly) ViewAppearStatus  appearStatus;

/// 当前vc 执行viewWillAppear时候，执行selector方法(每个方法只会执行一次)
- (void)perform:(_Nonnull SEL)selector whenViewAppearStatus:(ViewAppearStatus)status;


@end
